package com.woniu.park.service.impl;

import com.woniu.park.dao.ParkingStateMapper;
import com.woniu.park.pojo.ParkingState;
import com.woniu.park.pojo.ParkingStateExample;
import com.woniu.park.service.ParkingStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 张洛诚
 * @date 2019/8/30 11:21:43
 * @description
 */
@Service
public class ParkingStateServiceImpl implements ParkingStateService {

    @Autowired
    ParkingStateMapper parkingStateMapper;
    @Override
    public List<ParkingState> getAllParkingState() {
        ParkingStateExample example=new ParkingStateExample();
        example.createCriteria();
        List<ParkingState> parkingStates = parkingStateMapper.selectByExample(example);
        return parkingStates;
    }
}
